# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=vkmark
pkgver=0_git20220909
pkgrel=0
_commit="30d2cd37f0566589d90914501fc7c51a4e51f559"
pkgdesc="Vulkan benchmark"
url="https://github.com/vkmark/vkmark"
arch="all !s390x" # blocked by assimp
license="LGPL-2.1-or-later"
makedepends="
	assimp-dev
	glm-dev
	meson
	vulkan-loader-dev
	wayland-dev
	wayland-protocols
	xcb-util-wm-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/vkmark/vkmark/archive/$_commit/vkmark-$_commit.tar.gz
	scene-include-cstdint.patch
"

builddir="$srcdir/vkmark-$_commit"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	# Skip failing "util image file reads" test
	meson test --no-rebuild --print-errorlogs -C output --test-args "exclude:Scenario: util image file reads"
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c4d388c52bd565603e98e936f35118f96df6b991ad1bf52670e0052fb3e8c2f2d96485e93b26a0796a1eb0ba316416c87ca925eabecf2263613c91e9c2c2d5a7  vkmark-30d2cd37f0566589d90914501fc7c51a4e51f559.tar.gz
ad8aa1bd67a983ff6c32b432a2477a2d5d885fe5ff4ea6fa3e624d4f8f7985ccdef4832023a20cbb6850aae8ed9afc61809917360dbc7d0ea970df1a002702e7  scene-include-cstdint.patch
"
